package com.example.user.service;

import com.example.common.core.domain.R;
import com.example.user.domain.video.dto.VideoQueryDTO;
import com.example.user.domain.video.vo.VideoVO;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IVideoService {
    List<VideoVO> list(VideoQueryDTO videoQueryDTO);

    ResponseEntity<R<String>> upload(MultipartFile videoFile, Long courseId);

    int delete(Long videoId);

    int reName(Long videoId,String newName);

    VideoVO get(Long videoId);

    void streamVideo(Long videoId, HttpServletResponse response);
}
